package com.bumblebee.server.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.ManyToOne;

/**
 * 
 * @author Dinesh
 * Bill item
 */
@Entity
public class BillItem extends AbstractEntity{

	@ManyToOne
	private Product product;
	
	@Column(nullable = false)
	private Integer qty;
	
	@Column(nullable = false)
	private Double actualPrice;
	
	@Column(nullable = false)
	private Double billedPrice;
	
	private Double discountApplied;

	public Product getProduct() {
		return product;
	}

	public void setProduct(Product product) {
		this.product = product;
	}

	public Integer getQty() {
		return qty;
	}

	public void setQty(Integer qty) {
		this.qty = qty;
	}

	public Double getDiscountApplied() {
		return discountApplied;
	}

	public void setDiscountApplied(Double discountApplied) {
		this.discountApplied = discountApplied;
	}

	public Double getActualPrice() {
		return actualPrice;
	}

	public void setActualPrice(Double actualPrice) {
		this.actualPrice = actualPrice;
	}

	public Double getBilledPrice() {
		return billedPrice;
	}

	public void setBilledPrice(Double billedPrice) {
		this.billedPrice = billedPrice;
	}
	
}
